/*
 * @Author: your name
 * @Date: 2020-08-28 15:50:17
 * @LastEditTime: 2020-08-28 17:44:55
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \ryfront\src\api\dic.js
 */
import axios from './http';

export const dicAdd = (obj) => {
    return axios.post("/d_dic/d-dic/addDic",obj);
}

export const dicList = () => {
    return axios.get("/d_dic/d-dic/listDic");
}

//获取字典详情列表
export const dicDetailListByDicId = (dicId)=> {
    return axios.get("/d_dic_detail/d-dic-detail/getDicDetailList",{params:{dicId:dicId}});
}

//字典详情添加
export const dicDetailAdd = (obj) => {
    return axios.post("/d_dic_detail/d-dic-detail/addDicDetail",obj);
}